package edu.sctu.jarime.may.day20150517;

/**
 * Created by user19 on 2015/5/18.
 */
public class TextDate {

    TeaCher[] teacher = new TeaCher[2];

    public TeaCher[] getTeacher() {
        TeaCher teacher = new TeaCher();
        teacher.course = "计算机";
        teacher.name = "张三";
        teacher.number = 1001010;
        teacher.sex = "男";
        teacher.work = "教授";
        Student[] students = new Student[3];
        TextCourse[] textCourses=new TextCourse[9];
        for (int i = 0; i < 3; i++) {
            Student student = new Student();
            student.address = "四川";
            student.age = 19;
            student.name = "李莉";
            student.number = 33;
            student.score = 94;
            student.sex = "女";
            students[i] = student;

        }
        teacher.students = students;




        TeaCher teacher1 = new TeaCher();
        teacher1.course = "数学";
        teacher1.name = "李四";
        teacher1.number = 1001011;
        teacher1.sex = "女";
        teacher1.work = "讲师";

        Student[] student1 = new Student[3];
        for (int i = 0; i < 3; i++) {
            Student student = new Student();
            student.address = "成都";
            student.age = 18;
            student.name = "周梦雪";
            student.number = 34;
            student.score = 60;
            student.sex = "男";


            student1[i] = student;
        }
        teacher1.students = student1;


        this.teacher[0]=teacher;
        this.teacher[1]=teacher1;

        return this.teacher;
    }

//
//    TextCourse[] textCourse=new TextCourse[3];
//    public TextCourse[] getcourse(){
//        TextCourse textCourse1=new TextCourse();
//        textCourse1.zhangsan1="计算机";
//        textCourse1.zhangsan2="语文";
//        textCourse1.zhangsan3="数学";
//
//        TextCourse textCourse2=new TextCourse();
//        textCourse2.lisi1="计算机";
//        textCourse2.lisi2="语文";
//        textCourse2.lisi3="物理";
//
//        TextCourse textCourse3=new TextCourse();
//        textCourse3.wangwu1="计算机";
//        textCourse3.wangwu2="数学";
//        textCourse3.wangwu3="生物";
//
//
//        TextCourse[] textCourses={textCourse1,textCourse2,textCourse3};
//        this.textCourse=textCourses;
//        return textCourse;
//    }
}
